package com.lottery.htbc.dao;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.lottery.htbc.mapper.BetTaskMapper;
import com.lottery.htbc.pojo.BetTask;


@Service
public class BetTaskDao {

	@Autowired
	private BetTaskMapper betTaskMapper;

	/**
	 * 批量插入任务
	 * @param betTasks
	 */
	public void saveBatch(List<BetTask> betTasks){
		betTaskMapper.saveBatch(betTasks);

	}

	/**
	 * 重建表
	 */
	public void truncateTable(){
		betTaskMapper.truncateTable();

	}

}
